#include("/template/common/layout/_page_layout.html")
#@layout()

#define css()

#end

#define content()
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">项目信息</div>
                <div class="layui-card-body">
                    <form class="layui-form" action="">
                        <div class="layui-row layui-col-space10 layui-form-item">

                            <div class="layui-inline">
                                <label class="layui-form-label">项目名称</label>
                                <div class="layui-input-block" style="width:248px;">
                                    <input type="text" value="#(model.name)" autocomplete="off" class="layui-input" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">项目类型</label>
                                <div class="layui-input-block" style="width:190px;">
                                    <input type="text" value="#(model.typeName)" autocomplete="off" class="layui-input" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">预计金额</label>
                                <div class="layui-input-inline">
                                    <input name="digits" type="text" value="#number(model.amount, ',###')" autocomplete="off" class="layui-input" style="width: 170px" readonly/>
                                </div>
                                <div class="layui-form-mid layui-word-aux" style="margin-left: -25px">（单位：元）</div>
                            </div>
                        </div>

                        <div class="layui-row layui-col-space10 layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">地址</label>
                                <div class="layui-input-block" style="width:975px;">
                                    <input type="text" value="#(model.site)" autocomplete="off" class="layui-input" readonly/>
                                </div>
                            </div>
                        </div>

                        <div class="layui-row layui-col-space10 layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">简介</label>
                                <div class="layui-input-block" style="width:975px;">
                                    <textarea class="layui-textarea" id="brief" name="brief" disabled>#(model.brief)</textarea>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">立项机构信息</div>
                <div class="layui-card-body">
                    <form class="layui-form" action="">
                        <div class="layui-row layui-col-space10 layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">名称</label>
                                <div class="layui-input-block">
                                    <input type="text" value="#(organization.name)" autocomplete="off" class="layui-input" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label" style="width: 130px;">组织机构代码</label>
                                <div class="layui-input-block" style="margin-left:160px; width:200px;">
                                    <input type="text" value="#(organization.code)" autocomplete="off" class="layui-input" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">地址</label>
                                <div class="layui-input-block" style="width: 290px;">
                                    <input type="text" value="#(organization.addr)" autocomplete="off" class="layui-input" readonly/>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
#end

#define js()
<script type="text/javascript">
    layui.use(['form', 'layer', 'layedit'], function () {
        // 操作对象
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , $ = layui.jquery;

        layedit.build('brief', {
            height: 180 //设置编辑器高度
        }); //建立编辑器
    });

    $('#digits').on('input propertychange', function() {
        var data = $('#digits').val();
        var str = digitsConversion(data);
        var bid = parseInt(Math.random()*100000);
        $("#digitsTip").html('<div class="docBubble" id="btip'+bid+'"><i class="triangle-t"></i><div class="tl"><div class="inner"><div class="cont"></div></div></div><div class="tr"></div><div class="bl"></div></div>');
        var $btip = $("#btip"+bid);
        var offset,h ,w ;
        var timer;
        clearInterval(timer);
        offset = $(this).offset();
        h = $(this).height();
        w = $(this).width();
        $(".cont").html(str);
        $(".triangle-t").css('left',26);
        $btip.css({ "left":offset.left-330  ,  "top":offset.top+h-60  }).show();
    });


    $('#digits').live("mousemove",function(){
        clearInterval(window.timer);
        $("#digitsTip").show();
    });

    $('#digits').live("mouseout",function(){
        $("#digitsTip").hide();
    });


</script>
#end